package com.kudian.restful.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * BackGoods entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "back_goods")
public class BackGoods implements java.io.Serializable {

	// Fields

	private Integer recId;
	private Integer backId;
	private String orderSn;
	private Integer orderId;
	private Integer goodsId;
	private String goodsName;
	private String goodsSn;
	private Short sendNumber;
	private Double goodsPrice;
	private String measureUnit;

	// Constructors

	/** default constructor */
	public BackGoods() {
	}

	/** minimal constructor */
	public BackGoods(String orderSn, Integer orderId, Integer goodsId,
			Short sendNumber, Double goodsPrice, String measureUnit) {
		this.orderSn = orderSn;
		this.orderId = orderId;
		this.goodsId = goodsId;
		this.sendNumber = sendNumber;
		this.goodsPrice = goodsPrice;
		this.measureUnit = measureUnit;
	}

	/** full constructor */
	public BackGoods(Integer backId, String orderSn, Integer orderId,
			Integer goodsId, String goodsName, String goodsSn,
			Short sendNumber, Double goodsPrice, String measureUnit) {
		this.backId = backId;
		this.orderSn = orderSn;
		this.orderId = orderId;
		this.goodsId = goodsId;
		this.goodsName = goodsName;
		this.goodsSn = goodsSn;
		this.sendNumber = sendNumber;
		this.goodsPrice = goodsPrice;
		this.measureUnit = measureUnit;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "rec_id", unique = true, nullable = false)
	public Integer getRecId() {
		return this.recId;
	}

	public void setRecId(Integer recId) {
		this.recId = recId;
	}

	@Column(name = "back_id")
	public Integer getBackId() {
		return this.backId;
	}

	public void setBackId(Integer backId) {
		this.backId = backId;
	}

	@Column(name = "order_sn", nullable = false, length = 20)
	public String getOrderSn() {
		return this.orderSn;
	}

	public void setOrderSn(String orderSn) {
		this.orderSn = orderSn;
	}

	@Column(name = "order_id", nullable = false)
	public Integer getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	@Column(name = "goods_id", nullable = false)
	public Integer getGoodsId() {
		return this.goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}

	@Column(name = "goods_name", length = 120)
	public String getGoodsName() {
		return this.goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	@Column(name = "goods_sn", length = 60)
	public String getGoodsSn() {
		return this.goodsSn;
	}

	public void setGoodsSn(String goodsSn) {
		this.goodsSn = goodsSn;
	}

	@Column(name = "send_number", nullable = false)
	public Short getSendNumber() {
		return this.sendNumber;
	}

	public void setSendNumber(Short sendNumber) {
		this.sendNumber = sendNumber;
	}

	@Column(name = "goods_price", nullable = false, precision = 10)
	public Double getGoodsPrice() {
		return this.goodsPrice;
	}

	public void setGoodsPrice(Double goodsPrice) {
		this.goodsPrice = goodsPrice;
	}

	@Column(name = "measure_unit", nullable = false, length = 15)
	public String getMeasureUnit() {
		return this.measureUnit;
	}

	public void setMeasureUnit(String measureUnit) {
		this.measureUnit = measureUnit;
	}

}